package com.example.service;

import com.mySpring.*;

/**
 * @ClassName UserService
 * @Description
 * @Author Yin
 * @Date 2021/4/8 21:10
 * @Version 1.0
 */
@Component("userService")
public class UserServiceImpl implements InitializingBean,UserService {
    @Autowired
    private OrderService orderService;


    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Autowired
    public void test() {
        System.out.println(orderService);
        System.out.println(name);
    }


    @Override
    public void afterPropertiesSet() throws Exception {
        System.out.println("初始化");
    }
}
